home *** CD-ROM | disk | FTP | other *** search
/ Chip 1998 September / CHIP Eylül 1998.iso / Slackwar / docs / mini / Soundblaster-AWE < prev    next >
Text File  |  1998-01-15  |  32KB  |  849 lines

  1.   Sound Blaster AWE 32/64 HOWTO
  2.   by Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>
  3.   v1.2, 11 January 1998
  4.  
  5.   This document describes how to install and configure a Sound Blaster
  6.   32 (SB AWE 32, SB AWE 64) card from Creative Labs in a Linux System
  7.   using the AWE Sound Driver Extension written by Takashi Iwai. It also
  8.   covers some special tools and players for the SB AWE series. Reference
  9.   system is a Debian GNU/Linux System, but every other Linux Distribu¡
  10.   tion should also work.
  11.  
  12.   1.  Introduction
  13.  
  14.   This is the Sound Blaster AWE HOWTO. It gives you detailed information
  15.   about getting the most out of your Sound Blaster 32 or better,
  16.   including Wave Table synthesis. This document covers all SB cards up
  17.   from the SB 32.
  18.  
  19.   The Sound Blaster series is well-known in the DOS and Windows
  20.   community, and a lot of Linux users want to use this sound card under
  21.   Linux as well.  Unfortunately, Creative Labs only provides a sound
  22.   driver for Windows and DOS, so it is not trivial to install and use a
  23.   SB card under Linux. This document tries to describe how one can use
  24.   the features of the SB AWE series under a Linux environment.
  25.  
  26.   1.1.  Acknowledgments
  27.  
  28.   This documents contains information I got from the AWE Driver FAQ and
  29.   the ISA PnP FAQ.  See section ``Sources'' for author and location of
  30.   this documents. Thanks to the authors, the SB AWE support is possible.
  31.  
  32.   A lot of essential work was done by Hannu Savolainen
  33.   <http://www.4front-tech.com/usslite>, who developed the sound driver
  34.   that comes with the Linux kernel. Thank you!
  35.  
  36.   I want to thank Nicola Bernardelli <mailto:n.bern@mail.protos.it> for
  37.   testing the AWE64 stuff. Without him, many errors would have remained
  38.   undetected.
  39.  
  40.   Thanks to the SGML Tools
  41.   <ftp://sunsite.unc.edu/pub/Linux/utils/text/sgml-tools-0.99.0.tar.gz>
  42.   package, this HOWTO is available in several formats, all generated
  43.   from a common source file.
  44.  
  45.   1.2.  Revision History
  46.  
  47.      Version 1.0
  48.         first version
  49.  
  50.      Version 1.1
  51.         corrected spelling (thanks Curt!), added version requirement for
  52.         isapnp, now available via sunsite and lots of mirrors
  53.  
  54.      Version 1.2
  55.         French version now available!, minor corrections, lots of
  56.         spelling fixed (thanks to ispell)
  57.  
  58.   1.3.  New versions of this document
  59.  
  60.   The latest version can be found on my Home Page, namely at Sound
  61.   Blaster AWE HOWTO <http://homepage.ruhr-uni-
  62.   bochum.de/Marcus.Brinkmann/soundblaster.html>.
  63.  
  64.   New versions of this document will be uploaded to various anonymous
  65.   ftp sites that archive such information including
  66.   <ftp://sunsite.unc.edu/pub/Linux/docs/HOWTO/mini>.
  67.  
  68.   Hypertext versions of this and other Linux HOWTOs are available on
  69.   many World-Wide-Web sites, including  <http://sunsite.unc.edu/LDP/>.
  70.   Most Linux CD-ROM distributions include the HOWTOs, often under the
  71.   /usr/doc directory.
  72.  
  73.   Thanks to Arnaud Launay zoro@lsol.tm.fr, a French version of this
  74.   document is now available!  The latest version can be found via http
  75.   <http://www.freenix.fr/linux/HOWTO> or anonymous ftp
  76.   <ftp://ftp.lip6.fr/pub/linux/french/docs/HOWTO>.
  77.  
  78.   If you make a translation of this document into another language, let
  79.   me know and I'll include a reference to it here.
  80.  
  81.   1.4.  Feedback
  82.  
  83.   I rely on you, the reader, to make this HOWTO useful. If you have any
  84.   suggestions, corrections, or comments, please send them to me,
  85.   Marcus.Brinkmann@ruhr-uni-bochum.de, and I will try to incorporate
  86.   them in the next revision.
  87.  
  88.   i would especially welcome information about the startup procedure
  89.   (boot scripts etc.) of other famous Linux distributions, e. g. Red Hat
  90.   or SuSE Linux.
  91.  
  92.   If you publish this document on a CD-ROM or in hardcopy form, a
  93.   complimentary copy would be appreciated. Mail me for my postal
  94.   address. Also consider making a donation to the Linux Documentation
  95.   Project to help support free documentation for Linux. Contact the
  96.   Linux HOWTO coordinator, Greg Hankins gregh@sunsite.unc.edu, for more
  97.   information.
  98.  
  99.   1.5.  Distribution Policy
  100.  
  101.   Copyright 1997 Marcus Brinkmann.
  102.  
  103.   This HOWTO is free documentation; you can redistribute it and/or
  104.   modify it under the terms of the GNU General Public License as
  105.   published by the Free Software Foundation; either version 2 of the
  106.   License, or (at your option) any later version.
  107.  
  108.   This document is distributed in the hope that it will be useful, but
  109.   without any warranty; without even the implied warranty of
  110.   merchantability or fitness for a particular purpose.  See the GNU
  111.   General Public License for more details.
  112.  
  113.   You can obtain a copy of the GNU General Public License by writing to
  114.   the Free Software Foundation <http://www.fsf.org>, Inc., 675 Mass Ave,
  115.   Cambridge, MA 02139, USA.
  116.  
  117.   2.  Before you start
  118.  
  119.   2.1.  Introduction
  120.  
  121.   This document tries to help you install and use a Sound Blaster AWE 32
  122.   or Sound Blaster AWE 64 from Creative Labs in your Linux system. The
  123.   reference system is a Debian GNU/Linux <http://www.debian.org> system
  124.   on an Intel i586 platform, but it should work with any other Linux
  125.   distribution as well as on every platform that is supported by the
  126.   Linux sound driver (differences are mentioned where they appear, if
  127.   any).
  128.  
  129.   Be sure to read the Linux Sound HOWTO (see section ``Additional
  130.   Information'') carefully. I consider my document a supplement to the
  131.   Sound HOWTO, and often you can find more information about things I
  132.   have left out there.
  133.  
  134.   2.2.  Some general notes about the SB AWE cards
  135.  
  136.   The SB AWE 32 sound card provides a raw audio device, standard
  137.   OPL-2/OPL-3 synthesis, a MPU-401 MIDI port and 32 voices EMU 8000 Wave
  138.   Table synthesis (for an explanation on these and other terms see the
  139.   Linux Sound HOWTO).  One goal of this document is to help you get all
  140.   these features to work properly.
  141.  
  142.   The SB AWE 64 has the capabilities of the SB AWE 32 and an additional
  143.   Wave Guide synthesis Creative Labs is especially proud of. The problem
  144.   for Linux users is, that the additional 32 voices are software
  145.   generated and output via the raw wave devices. Because Creative Labs
  146.   sees no market in Linux drivers, a Wave Guide synthesis sound driver
  147.   is only available for Windows 3.1 and Windows 95.
  148.  
  149.   This means that, from a Linux user's point of view, the SB AWE 32 and
  150.   SB AWE 64 are almost identical. From now on I will only refer to the
  151.   SB AWE in general and will only mention differences where they appear
  152.   (if any).
  153.  
  154.   2.3.  Some general notes about the Plug and Play cards
  155.  
  156.   Most modern cards for the Intel platform are ISA PnP cards, which is
  157.   an abbreviation for ``Plug and Play''. This means, that the card has
  158.   to be configured by the operation system, and this has to be done
  159.   through an initialization routine at boot time. In general, there are
  160.   at least three possible ways to do this:
  161.  
  162.   1. You have a PnP Bios, which means that your Bios is aware of PnP
  163.      cards and can configure them. If you think you can use all the
  164.      features of your SB AWE PnP just because you have a PnP Bios, you
  165.      are out of luck. Even if the Bios claims to support PnP cards it
  166.      only initializes a subset of the ports and addresses used by your
  167.      sound card. You will probably be able to play raw wave data, but
  168.      you won't be able to play MIDI music, for example. For this reason,
  169.      a PnP Bios is not an option.
  170.  
  171.   2. You have an operating system that supports PnP cards. The current
  172.      stable Linux kernel (2.0.x) is not such an operating system, so we
  173.      have to wait for future kernel releases, that will support PnP
  174.      devices.
  175.  
  176.   3. You have a special program, started at boot time, that initializes
  177.      your PnP cards. This is the way we do it.
  178.  
  179.   The most commonly used software to initialize PnP cards under Linux
  180.   are the ``isapnptools'' (see section ``Sources'' and section ``Getting
  181.   Started''). They provide a predictable way to configure all ISA PnP
  182.   cards in your machine, not only your sound card.
  183.  
  184.   2.4.  Some general notes about loadable kernel modules
  185.  
  186.   Some device drivers can be built as modules instead of compiling them
  187.   into the kernel. You can find more information about modules in the
  188.   Kernel HOWTO and the Module HOWTO (see section ``Additional
  189.   Information'').
  190.  
  191.   If you have a PnP card, you must install sound support as a loadable
  192.   kernel module. This means, that you can't build the sound driver into
  193.   the kernel, but you will have to build it as a module that can be
  194.   loaded into the kernel at runtime. This is because the kernel will be
  195.   installed before your ISA PnP card can be configured, and your sound
  196.   driver has to be loaded after your ISA PnP card is configured.
  197.  
  198.   The sound kernel module can be loaded manually via insmod sound or
  199.   modprobe -a sound or in the appropriate boot script of your Linux
  200.   system (in Debian, it is sufficient to append a single line containing
  201.   sound to /etc/modules). Another approach is to launch kerneld, a
  202.   daemon that installs and removes kernel modules as needed.
  203.  
  204.   Note that kerneld may not be the best solution for the AWE sound
  205.   driver module, because it takes time to load the module in the kernel,
  206.   especially if you want to use Wave Table synthesis and load big Sound
  207.   Font banks, which you have to do each time after inserting the module.
  208.   Because kerneld removes unused modules after one minute by default, it
  209.   is perhaps better to insert the sound module manually or at boot time.
  210.   Note that inserting the sound module manually or at boot time does
  211.   prevent kerneld from removing it when it is idle. By the way: You can
  212.   manually insert the sound module and use kerneld at the same time. The
  213.   two methods don't conflict, but kerneld does not care about the sound
  214.   module anymore.
  215.  
  216.   This is especially useful if your mixer settings get disturbed after
  217.   removing and reinstalling the module. A solution for this problem will
  218.   be given in section ``Mixing'' (there is described how you can start
  219.   your mixer automatically when the sound module gets inserted).
  220.   However, it takes time for kerneld to load the module, to load the
  221.   sound font bank and to start your mixer, and for this and other
  222.   reasons it is better to install the sound module at boot time and not
  223.   let kerneld remove it.
  224.  
  225.   2.5.  Some general notes about the kernel sound driver
  226.  
  227.   You can install sound support in the kernel as a built-in or as a
  228.   loadable module. If you have a PnP card, you have to install sound
  229.   support as a module, because the PnP card needs to be initialized via
  230.   the isapnptools before the module gets installed.
  231.  
  232.   As you can imagine, you will have to recompile the kernel. I will give
  233.   you a few hints about it below. For now, let's talk about the sound
  234.   support in the kernel source. The kernel ships with the Free (Lite)
  235.   Version of the OSS (USS) sound driver. The current version of this
  236.   driver (3.5.4) does not support the SB AWE in full, but the SB 16 part
  237.   of it. So you can have a raw audio device and OPL-2/OPL-3 synthesis if
  238.   you use it, but you will not be able to play midi music with Wave
  239.   Table synthesis.
  240.  
  241.   If you want to use the Wave Table device, you can either buy the
  242.   commercial sound driver from 4Front Technologies <http://www.4front-
  243.   tech.com> (someone please confirm me that it can do it, please), or
  244.   patch your kernel with the AWE 32 Sound Driver Extension by Takashi
  245.   Iwai. The former is beyond the scope of this document, I assume you
  246.   want to use the latter.
  247.  
  248.   The AWE32 Sound Driver Extension (see section ``Sources'') is
  249.   published under the GNU copyright license and ships with a number of
  250.   tools to make use of the EMU 8000 wave synthesis of the SB AWE cards.
  251.  
  252.   The awedrv software is already included in newer kernel source trees
  253.   (starting from some 2.1.x kernels, but perhaps you want to upgrade the
  254.   sources in your kernel tree, they may be old.
  255.  
  256.   3.  How to install SB AWE sound support
  257.  
  258.   3.1.  Things you will need
  259.  
  260.   These are the requirements for SB AWE support under Linux:
  261.  
  262.   ╖  a functional Linux system (e.g. the Debian GNU/Linux distribution),
  263.  
  264.   ╖  a SB AWE 32 or compatible card (e.g. SB32, SB32 PnP, SB AWE64,
  265.      ...),
  266.  
  267.   ╖  the sources of the Linux kernel, including the sound driver
  268.      OSS/Free (normally included, check in
  269.      /usr/src/Linux/drivers/sound/Readme),
  270.  
  271.   ╖  the AWE 32 sound driver extensions.
  272.  
  273.   If you have a PnP card, you will also need:
  274.  
  275.   ╖  the isapnptools software package.
  276.  
  277.   Look in section ``Sources'' for information where you can obtain these
  278.   programs.
  279.  
  280.   If you have a Debian GNU/Linux system, this means that you will need
  281.   the packages kernel-source-<version>, awe-drv and perhaps the package
  282.   isapnptools.  You will want some of the other awe-* packages although
  283.   they are not essential. I strongly recommend the kernel-package for
  284.   easy kernel compiling and installing.
  285.  
  286.   3.2.  Getting started
  287.  
  288.   Let's assume you have properly installed your card in a socket on your
  289.   motherboard and perhaps already tested it under a DOS or Windows
  290.   environment.
  291.  
  292.   The next step is to initialize the card at boot time if and only if it
  293.   is a PnP card. Follow the documentation in the source package to
  294.   compile and install isapnptools (or just use the Debian binary
  295.   package), and make a
  296.  
  297.        # pnpdump > /etc/isapnp.conf
  298.  
  299.   as root. This will generate a hopefully proper configuration file for
  300.   your PnP cards, but with all devices commented out. Please edit this
  301.   file carefully, and compare the values for DMA channels, IO bases and
  302.   interrupts with the configuration of the cards under an DOS or Window
  303.   environment if possible (with Win95, look at the resources used by the
  304.   card under resources in the device manager). If you have problems,
  305.   read the documentation that ships with the isapnptools carefully.
  306.  
  307.   CAUTION: isapnptools often fails to detect all three I/O ports of the
  308.   SB AWE Wave Table device. Please check carefully the WaveTable entry
  309.   in your isapnp.conf against the example at the end of this HOWTO.
  310.   Adjust the I/O base addresses if necessary.
  311.  
  312.   CAUTION: According to the isapnp-faq, sometimes isapnp fails to
  313.   program the number of the logical device. If you encounter error
  314.   messages like the following:
  315.  
  316.        Error occurred executing request 'LD 2' on or around line...
  317.  
  318.   then try adding (VERIFYLD N) at the top of isapnp.conf. You have to
  319.   use at least version 1.10 for this to work. If you can't use version
  320.   1.10 or newer, you can also POKE the logical device numbers directly.
  321.   Please refer to the isapnp-faq for more information on this approach.
  322.   If it doesn't work for you, please contact me (and the isapnp people
  323.   will be interested, too, I would think).
  324.  
  325.   CAUTION: Make sure that the last line is (WAITFORKEY), that will
  326.   sometimes be omitted by older versions of pnpdump.
  327.  
  328.   A sample isapnp.conf for only one PnP card (the sound card) can be
  329.   found at the end of the document (see section ``Sample
  330.   <tt>isapnp.conf</tt>'').
  331.  
  332.   If you have a Debian system, no further adjustments are necessary.
  333.   isapnp will be started at boot time in /etc/init.d/boot with this
  334.   snippet of script code, that you may want to include in your boot
  335.   scripts:
  336.  
  337.   ______________________________________________________________________
  338.   # Configure the isa plug and play boards before loading
  339.   # modules. Need to do this before loading modules to get
  340.   # a chance of configuring and starting PnP boards before
  341.   # the drivers mess all this up.
  342.   #
  343.   if [ -x /etc/init.d/isapnp ]
  344.   then
  345.     /etc/init.d/isapnp start
  346.   fi
  347.   ______________________________________________________________________
  348.  
  349.   where /etc/init.d/isapnp is
  350.  
  351.   ______________________________________________________________________
  352.   #! /bin/sh
  353.   # /etc/init.d/isapnp: configure Plug and Play boards
  354.   test -x /sbin/isapnp || exit 0
  355.   /sbin/isapnp /etc/isapnp.conf
  356.   exit 0
  357.   ______________________________________________________________________
  358.  
  359.   If you have another Linux distribution, you are on your own. I don't
  360.   know what to do (anybody willing to submit more specific
  361.   information?). Just make sure that isapnp gets started before the
  362.   modules will be loaded (see below).
  363.  
  364.   3.3.  Compiling the kernel
  365.  
  366.   Before recompiling the kernel, you have to apply the AWE Driver
  367.   Extension to the sound driver. Even if your kernel source tree already
  368.   includes the awedrv extension (check /drivers/sound/lowlevel/ for
  369.   that), you may want to upgrade the awedrv software. Follow the
  370.   installation instructions in the awedrv source directory. In brief,
  371.   you have to run an installation script that applies the patches to the
  372.   kernel sources.
  373.  
  374.   Be careful if you have upgraded the kernel source tree after running
  375.   the install script. The script just checks if a certain file exists -
  376.   if it exists, it does not apply the necessary patch. You are well
  377.   advised to remove the file drivers/sound/lowlevel/awe_wav.c before
  378.   running the script after upgrading the kernel source.
  379.  
  380.   Next you have to configure the kernel for sound support. I hope you
  381.   know a bit about kernel compiling; see the Sound HOWTO and the Kernel
  382.   HOWTO for details. Go in the source directory of your kernel sources
  383.   (/usr/src/linux for example), and do
  384.  
  385.        # make config
  386.  
  387.   or make menuconfig or make xconfig. Then you have to configure your
  388.   kernel in the standard way. Use this opportunity to make a small and
  389.   powerful kernel, especially designed for your system. Be sure to
  390.   answer Enable loadable module support with Y, if you want to install
  391.   the sound driver as a loadable module (a must if you have a PnP card),
  392.   but I'm sure you want to do it anyway.
  393.  
  394.   At one point, you will be asked if you want sound card support. You
  395.   are free to answer with Y or with M if you have not a PnP card.  You
  396.   must answer with M, for module, if you have a PnP card.  You have to
  397.   compile sound card support as a module if you have a PnP card because
  398.   the PnP card has to be initialized before the module gets loaded.
  399.  
  400.   The following questions you should answer with Y, all other with N:
  401.  
  402.   ______________________________________________________________________
  403.   Sound Blaster (SB, SBPro, SB16, clones) support (CONFIG_SB) [Y/n/?]
  404.   Generic OPL2/OPL3 FM synthesizer support (CONFIG_ADLIB) [Y/n/?]
  405.   /dev/dsp and /dev/audio support (CONFIG_AUDIO) [Y/n/?]
  406.   MIDI interface support (CONFIG_MIDI) [Y/n/?]
  407.   FM synthesizer (YM3812/OPL-3) support (CONFIG_YM3812) [Y/n/?]
  408.   lowlevel sound driver support [Y/n/?]
  409.   AWE32 support (CONFIG_AWE32_SYNTH) [Y/n/?]
  410.   ______________________________________________________________________
  411.  
  412.   Only the latter is actually for the Wave Table synthesis. The others
  413.   are SB 16 options from the OSS/Free sound driver.
  414.  
  415.   In addition, you have to configure the sound card I/O port. Look at
  416.   the isapnp.conf file for hints, if you have one. For me, the following
  417.   default values are sufficient. Note that the default value from the
  418.   kernel configuration script may be wrong (especially the values
  419.   SBC_IRQ and SB_MPU_BASE seem to be incorrect for most cards).
  420.  
  421.   ______________________________________________________________________
  422.   I/O base for SB Check from manual of the card (SBC_BASE) [220]
  423.   Sound Blaster IRQ Check from manual of the card (SBC_IRQ) [5]
  424.   Sound Blaster DMA 0, 1 or 3 (SBC_DMA) [1]
  425.   Sound Blaster 16 bit DMA (_REQUIRED_for SB16, Jazz16, SMW) 5, 6 or 7
  426.   (use 1 for 8 bit cards) (SB_DMA2) [5]
  427.   MPU401 I/O base of SB16, Jazz16 and ES1688 Check from manual of the card
  428.   (SB_MPU_BASE) [330]
  429.   SB MPU401 IRQ (Jazz16, SM Wave and ES1688) Use -1 with SB16 (SB_MPU_IRQ) [-1]
  430.   ______________________________________________________________________
  431.  
  432.   Now recompile the kernel. Debian users should use the kernel-package.
  433.   This package makes the kernel compile as easy as installing a debian
  434.   package. Look at the documentation in /usr/doc/kernel-package/. Here
  435.   is a hint:
  436.  
  437.        # make-kpkg clean
  438.        # make-kpkg -revision custom.1.0 kernel_image
  439.  
  440.   and then dpkg -i /usr/src/kernel-image-2.0.29_custom.1.0_i386.deb.
  441.  
  442.   If you have another Linux distribution, follow the standard way for
  443.   compiling a new kernel. Don't forget make modules and make
  444.   modules_install. Look at the Sound HOWTO and perhaps the Kernel HOWTO
  445.   for more information.
  446.  
  447.   3.4.  Reboot
  448.  
  449.   After installing the new kernel, you should do a reboot (be sure to
  450.   have a functional boot disk at hand). Cross you fingers.
  451.  
  452.   If you have a PnP card be sure to launch isapnp either in a boot
  453.   script (as described above) or manually:
  454.  
  455.        # /sbin/isapnp /etc/isapnp.conf
  456.        Board 1 has Identity 74 00 00 e3 10 48 00 8c 0e:  CTL0048 Serial No 58128
  457.        [checksum 74]
  458.  
  459.   Now you can install the sound driver, if you have compiled it as a
  460.   module:
  461.  
  462.        # modprobe -a sound
  463.        AWE32 Sound Driver v0.3.3e (DRAM 2048k)
  464.  
  465.   If you think the memory detection was not correct (I have a report of
  466.   one who has a AWE64 with 4096k, and ``detected'' have been 28672k),
  467.   try either to upgrade the awedrv software or to specify the amount of
  468.   memory in the file /usr/src/linux/drivers/sound/lowlevel/awe_config.h,
  469.   for example:
  470.  
  471.        #define AWE_DEFAULT_MEM_SIZE  4096   /* kbytes */
  472.  
  473.   Sorry, you have to recompile the kernel then (perhaps compiling the
  474.   modules will be sufficient, but I don't know for sure).
  475.  
  476.   If it works, you may want to have the sound module loaded
  477.   automatically.  You can use kerneld (why this is a bad idea is
  478.   explained in section 1.4) or append a single line containing sound to
  479.   your /etc/modules (in Debian) or add /sbin/modprobe -a sound to your
  480.   start-up script.
  481.  
  482.   4.  Testing the Sound Driver
  483.  
  484.   4.1.  /proc/devices, /dev/sndstat
  485.  
  486.   If you have built-in sound support, you will get some useful
  487.   information at boot time. If you have sound support installed as a
  488.   loadable module, you can get the same information (perhaps after
  489.   removing the sound module with modprobe -r sound first) with
  490.  
  491.   # modprobe -a sound trace_init=1
  492.   Sound initialization started
  493.  
  494.   <Sound Blaster 16 (4.13)> at 0x220 irq 5 dma 1,5
  495.   <Sound Blaster 16> at 0x330 irq 5 dma 0
  496.   <Yamaha OPL3 FM> at 0x388
  497.   Sound initialization complete
  498.   AWE32 Sound Driver v0.3.3e (DRAM 2048k)
  499.  
  500.   If you have a /proc virtual file system, you can look for the sound
  501.   device with
  502.  
  503.        # cat /proc/devices
  504.        Character devices:
  505.        [...]
  506.        14 sound
  507.        [...]
  508.  
  509.   Next make sure you have the correct devices installed under /dev/.
  510.   Please look at the Sound HOWTO for details. Then ask /dev/sndstat
  511.   about the status of the sound module:
  512.  
  513.        # cat /dev/sndstat
  514.        Sound Driver:3.5.4-960630 (Sat Oct 11 19:35:14 CEST 1997 root,
  515.        Linux flora 2.0.29 #1 Sat Oct 11 19:12:56 CEST 1997 i586 unknown)
  516.        Kernel: Linux flora 2.0.29 #1 Sat Oct 11 19:36:23 CEST 1997 i586
  517.        Config options: 0
  518.  
  519.        Installed drivers:
  520.        Type 1: OPL-2/OPL-3 FM
  521.        Type 2: Sound Blaster
  522.        Type 7: SB MPU-401
  523.  
  524.        Card config:
  525.        Sound Blaster at 0x220 irq 5 drq 1,5
  526.        SB MPU-401 at 0x330 irq 5 drq 0
  527.        OPL-2/OPL-3 FM at 0x388 drq 0
  528.  
  529.        Audio devices:
  530.        0: Sound Blaster 16 (4.13)
  531.  
  532.        Synth devices:
  533.        0: Yamaha OPL-3
  534.        1: AWE32 Driver v0.3.3e (DRAM 2048k)
  535.  
  536.        Midi devices:
  537.        0: Sound Blaster 16
  538.  
  539.        Timers:
  540.        0: System clock
  541.  
  542.        Mixers:
  543.        0: Sound Blaster
  544.        1: AWE32 Equalizer
  545.  
  546.   If you don't have an output like this, perhaps there is an error in
  547.   your configuration. Go on and see what doesn't work, then go back to
  548.   step ``Getting Started'', checking everything.
  549.  
  550.   4.2.  Output - The Raw Audio Device
  551.  
  552.   Try to get an .au file (Sun workstation) or a raw sample file, and do
  553.  
  554.        # cat bell.au > /dev/audio
  555.  
  556.   resp.
  557.  
  558.        # cat sample > /dev/dsp
  559.  
  560.   You should hear the content of the file via the Audio Device 0: Sound
  561.   Blaster 16 (4.3).
  562.  
  563.   4.3.  Output - The OPL-2/OPL-3 Synthesis
  564.  
  565.   If you want to use the OPL-2/OPL-3 FM synthesis to play MIDI-Files
  566.   with your sound card, try the program playmidi (see Appendix B). Start
  567.   it with
  568.  
  569.        # playmidi -f dance.mid
  570.  
  571.   or
  572.  
  573.        # playmidi -4 dance.mid
  574.  
  575.   The former will give you OPL-2, the latter OPL-3 MIDI music. If you
  576.   are embarrassed about the sound, don't blame playmidi: It is the FM
  577.   synthesis that sounds bad.
  578.  
  579.   Imagine you would only have the OSS/Free Sound Driver: Than this is
  580.   the quality of MIDI Music you can achieve (apart from software
  581.   synthesis).  Fortunately, you have a SB AWE, and you can use the Wave
  582.   Table capabilities with the AWE Sound Driver Extension.
  583.  
  584.   4.4.  Output - The Wave Table Synthesis
  585.  
  586.   The AWE Driver Extension comes with special tools (awesfx) to make use
  587.   of the EMU 8000 Wave Table synthesis. First, you have to load a Sound
  588.   Font Bank on your card - even if you want to use the ROM samples! You
  589.   can get the files from your Windows installation - look for files
  590.   ending in *.sfb or *.sf2.
  591.  
  592.   The ROM samples can be loaded with SYNTHGM.SBK, real samples are in
  593.   SYNTHGS.SBK and SYNTHMT.SBK, as well as in SAMPLE.SBK. You can get
  594.   other Sound Font Banks via ftp or www, try the EMU Homepage, the web
  595.   site from Creative Labs, and look out for the Chaos samples, they are
  596.   really good (be sure to check out the AWE Driver Web Site).
  597.  
  598.   Try to load the standard GM (ROM) set with
  599.  
  600.        # sfxload -i synthgm.sbk
  601.  
  602.   and then play a midi file that comes with your SB AWE:
  603.  
  604.        # drvmidi dance.mid
  605.  
  606.   4.5.  Mixing
  607.  
  608.   Get your favorite mixer program and start it. Start a raw audio sample
  609.   and two MIDI files at the same time, and try out the mixer settings.
  610.   Play a bit, it should be very easy. Here a list of the devices and how
  611.   they are called:
  612.  
  613.      Yamaha OPL-3
  614.         Synth or FM
  615.  
  616.      AWE32 Driver
  617.         Synth or FM (does anyone know a mixer were the last two are
  618.         separated from each other?)
  619.  
  620.      Sound Blaster 16 (4.13)
  621.         PCM or DSP
  622.  
  623.      PC Speaker (still alive)
  624.         Spkr
  625.  
  626.   Other mixer settings refer to the CD ROM, possibly connected to the
  627.   sound card, to Master Volume, Bass, Treble and Recording Level of the
  628.   different input lines. You can specify which lines should be recorded.
  629.  
  630.   4.6.  Input - Sampling with the Raw Audio Device
  631.  
  632.   You can record different sources: a connected CD ROM, a microphone
  633.   connected to mic, and any that you can connect to line in. Set the
  634.   mixer in the appropriate position. Play a sound and record into a
  635.   file, reading from the Raw Audio Device, for example:
  636.  
  637.        # cdplay
  638.        # dd bs=8k count=5 </dev/dsp >music.au
  639.        5+0 records in
  640.        5+0 records out
  641.        # cat music.au >/dev/dsp
  642.  
  643.   records and plays five seconds of audio from the input device.
  644.  
  645.   4.7.  The MIDI Port
  646.  
  647.   Sorry, no information about MIDI port yet!
  648.  
  649.   5.  AWE Driver Software
  650.  
  651.   5.1.  sfxload
  652.  
  653.   You can load samples in your DRAM on the sound card with the sfxload
  654.   tool. Note that you can only load one sample file per bank, with bank
  655.   0 as default. So, after sfxload synthgs.sbk, the only samples on your
  656.   sound card are the GS samples. If you want to load additional Sound
  657.   Font Banks, you have to use the -b option, for example:
  658.  
  659.        # sfxload synthgs.sbk
  660.        # sfxload -b1 sample.sbk
  661.        # drvmidi sfx.mid
  662.  
  663.   You can load a default Sound Font Bank automatically with installing
  664.   the module. Just append a line like
  665.  
  666.        post-install sound /usr/bin/sfxload synthgm.sbk
  667.  
  668.   to your /etc/conf.modules file.
  669.  
  670.   See the documentation for more details about sfxload.
  671.  
  672.   5.2.  drvmidi
  673.  
  674.   With the drvmidi program, you can use your AWE Driver to play MIDI
  675.   files. Just specify the name of your midi file after the command:
  676.  
  677.        # drvmidi waltz.mid
  678.  
  679.   See the documentation for more details about drvmidi
  680.  
  681.   6.  Appendix
  682.  
  683.   6.1.  Additional Information
  684.  
  685.      The Linux Sound HOWTO
  686.         Author: Jeff Tranter, <jeff_tranter@pobox.com>
  687.  
  688.         Last Version: v1.17, 4 August 1997
  689.  
  690.         Please take a good look at the Sound HOWTO (available from
  691.         sunsite.unc.edu and other sites). It contains a bulk of data
  692.         about compiling the kernel with sound support, and explains a
  693.         lot about the sound devices, applications etc.
  694.  
  695.         I understand this HOWTO as an addition to the Sound HOWTO.
  696.  
  697.      The Linux Sound Playing HOWTO
  698.         Author: Yoo C. Chung, <wacko@laplace.snu.ac.kr>
  699.  
  700.         Last Version: v1.4, 13 May 1997
  701.  
  702.         You should also look at the Sound Playing HOWTO. It tells you
  703.         about the various sound formats and applications to play them.
  704.  
  705.      The AWE Driver FAQ
  706.         Author: Takashi Iwai <iwai@dragon.mm.t.u-tokyo.ac.jp>
  707.  
  708.         Source:  <http://bahamut.mm.t.u-tokyo.ac.jp/~iwai/awedrv/awedrv-
  709.         faq.html>
  710.  
  711.         If you have problems installing the AWE Driver or using the Wave
  712.         Table synthesis of your Sound Blaster card, then look here.
  713.  
  714.      The ISA PnP FAQ
  715.         Author: Peter Fox <fox@roestock.demon.co.uk>
  716.  
  717.         Source:
  718.         <http://www.roestock.demon.co.uk/isapnptools/isapnpfaq.html>
  719.  
  720.         If you have problems configuring your ISA PnP card, then this is
  721.         your book of wisdom.
  722.  
  723.   6.2.  Sources
  724.  
  725.      isapnptools
  726.         Author: Peter Fox <fox@roestock.demon.co.uk>
  727.  
  728.         Last Version: 1.11
  729.  
  730.         Source:
  731.         <http://www.roestock.demon.co.uk/isapnptools/index.html>
  732.  
  733.         If mailing patches, bug reports or comments, please put 'isapnp'
  734.         somewhere in the subject line, and mail to
  735.         isapnp@roestock.demon.co.uk.
  736.  
  737.      awedrv
  738.         Author: Takashi Iwai <iwai@dragon.mm.t.u-tokyo.ac.jp>
  739.  
  740.         Last Version: 0.4.2c
  741.  
  742.         Source:  <http://bahamut.mm.t.u-tokyo.ac.jp/~iwai/awedrv/>
  743.  
  744.      Linux kernel
  745.         Author: Linus Torvald and many other
  746.  
  747.         Last Version: At the moment, you should use 2.0.29
  748.  
  749.         Source: everywhere, where you can obtain Linux :)
  750.  
  751.      OSS/Free
  752.         Author: Hannu Savolainen (Please check  <http://www.4front-
  753.         tech.com/usslite before mailing me>).
  754.  
  755.         Last Version: I have 3.5.5-beta1
  756.  
  757.         Source: with the Linux kernel source package
  758.  
  759.         Information:   <http://www.4front-tech.com/usslite> or European
  760.         mirror <http://personal.eunet.fi/pp/voxware>.
  761.  
  762.   6.3.  Sample isapnp.conf
  763.  
  764.   In the ISA PnP configuration file created by pnpdump, the single
  765.   devices of your PnP cards appear as sections. In the output below, one
  766.   card was detected (the sound card), with four logical devices:
  767.  
  768.   ╖  LD 0: Audio Device
  769.  
  770.   ╖  LD 1: IDE Device
  771.  
  772.   ╖  LD 2: WaveTable Device
  773.  
  774.   ╖  LD 3: Gameport Device
  775.  
  776.   I left LD 1 unconfigured, because I have no CD ROM attached to my
  777.   sound card IDE port. If you have no IDE port on your SB, then LD 1
  778.   will be the Gameport Device and LD 3 will not appear.
  779.   Please refer to section ``Getting started'' for further (important!)
  780.   information about this file.
  781.  
  782.   ______________________________________________________________________
  783.   # $Id: pnpdump.c,v 1.9 1997/06/10 21:37:32 fox Exp $
  784.   # This is free software, see the sources for details.
  785.   # This software has NO WARRANTY, use at your OWN RISK
  786.   #
  787.   # For details of this file format, see isapnp.conf(5)
  788.   #
  789.   # For latest information on isapnp and pnpdump see:
  790.   # http://www.roestock.demon.co.uk/isapnptools/
  791.   #
  792.   # Compiler flags: -DREALTIME -DNEEDSETSCHEDULER
  793.  
  794.   (READPORT 0x0203)
  795.   (ISOLATE)
  796.   (IDENTIFY *)
  797.  
  798.   # Try the following if you get error messages like
  799.   # Error occurred executing request 'LD 2' on or around line...
  800.  
  801.   #(VERIFYLD N)
  802.  
  803.   # ANSI string -->Creative SB32 PnP<--
  804.  
  805.   (CONFIGURE CTL0048/58128 (LD 0
  806.   #     ANSI string -->Audio<--
  807.  
  808.     (INT 0 (IRQ 5 (MODE +E)))
  809.     (DMA 0 (CHANNEL 1))
  810.     (DMA 1 (CHANNEL 5))
  811.     (IO 0 (BASE 0x0220))
  812.     (IO 1 (BASE 0x0330))
  813.     (IO 2 (BASE 0x0388))
  814.  
  815.     (ACT Y)
  816.   ))
  817.  
  818.   (CONFIGURE CTL0048/58128 (LD 1
  819.   #     ANSI string -->IDE<--
  820.  
  821.   # (INT 0 (IRQ 10 (MODE +E)))
  822.   # (IO 0 (BASE 0x0168))
  823.   # (IO 1 (BASE 0x036e))
  824.  
  825.   # (ACT Y)
  826.   ))
  827.  
  828.   (CONFIGURE CTL0048/58128 (LD 2
  829.   #     ANSI string -->WaveTable<--
  830.  
  831.     (IO 0 (BASE 0x0620))
  832.     (IO 1 (BASE 0x0A20))
  833.     (IO 2 (BASE 0x0E20))
  834.  
  835.     (ACT Y)
  836.   ))
  837.  
  838.   (CONFIGURE CTL0048/58128 (LD 3
  839.   #     ANSI string -->Game<--
  840.  
  841.     (IO 0 (BASE 0x0200))
  842.     (ACT Y)
  843.   ))
  844.  
  845.   # Returns all cards to the "Wait for Key" state
  846.   (WAITFORKEY)
  847.   ______________________________________________________________________
  848.  
  849.